<?php
return [
    'components' => [
        'db' => [//主库
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=134.175.90.186;dbname=poetry',
            'username' => 'root',
            'password' => 't!a@l#k$1234',
            'charset' => 'utf8',
        ],
        'db_slave' => [//从库
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=111.231.196.212;dbname=myworks',
            'username' => 'root',
            'password' => 'Talk123!@#',
            'charset' => 'utf8',
        ],
        'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
            'viewPath' => '@common/mail',
        ],
    ],
];
